package com.teen9g.infoplatformserver.service;

import com.github.pagehelper.PageInfo;
import com.teen9g.PageQueryDTO.PlaygroundPageQueryDTO;
import com.teen9g.dto.PlaygroundDTO;
import com.teen9g.entity.Playground;
import com.teen9g.userVO.PlaygroundUserVO;
import com.teen9g.vo.PlaygroundVO;
import org.codehaus.jettison.json.JSONException;

public interface PlaygroundService {
    Playground getById(Integer id);

    String add(PlaygroundDTO playgroundDTO);

    String update(PlaygroundDTO playgroundDTO, Integer id) throws JSONException;

    String delete(Integer id);

    PageInfo<PlaygroundVO> page(PlaygroundPageQueryDTO playgroundPageQueryDTO);

    void addView(Integer id);

    PageInfo<PlaygroundUserVO> pageUser(PlaygroundPageQueryDTO playgroundPageQueryDTO);
}
